#include <QtDebug>

#include "singletab.h"
#include "gprogressbar.h"
#include "tabfactory.h"



TabFactory::TabFactory()
{
}


QWebView *TabFactory::create(QUrl url, QTabWidget *parent, QNetworkAccessManager *manager, GProgressBar *progressBar) {

    qDebug() << "Requested a new tab for" << url.toString();

    SingleTab *newTab = new SingleTab(parent, manager, progressBar);
    newTab->mostrapagina(url);
    return newTab;
}
